package com.pcbly.web.components.utils.template.pagemess;

import java.lang.reflect.Field;

import com.pcbly.web.components.utils.template.TemplateModel;

public class ModelPageFactory {

	public ModelPage page;
	
	public TemplateModel model;
	
	public Field[] fields;

	public ModelPage getPage() {
		return page;
	}

	public void setPage(ModelPage page) {
		this.page = page;
	}

	public TemplateModel getModel() {
		return model;
	}

	public void setModel(TemplateModel model) {
		this.model = model;
	}

	public Field[] getFields() {
		return fields;
	}

	public void setFields(Field[] fields) {
		this.fields = fields;
	}
	
	public void execute(){
		page.setModel(model);
		page.setFields(fields);
		page.product();
	}
}
